package com.file.system.entity.res;

import com.file.system.tools.page.DP;
import lombok.Getter;
import lombok.Setter;


/**
 * 数据分页
 */
@Getter
@Setter
public class DataBusinessPage<T> {
    /**
     * 数据
     *
     * @mock
     */
    private T data;
    /**
     * 分页
     */
    private DP paging;

    public DataBusinessPage() {

    }

    public static <T> DataBusinessPage<T> init() {
        DataBusinessPage dp = new DataBusinessPage();
        return dp;
    }

    public DataBusinessPage<T> set(T data, DP paging) {
        this.paging = paging;
        this.data = data;
        return this;
    }

}
